//
//  Handle_DealWaitHandle_Task.m
//  iphone.mobileoa
//
//  Created by 李亚春 on 13-6-19.
//  Copyright (c) 2013年 Epoint. All rights reserved.
//

#import "Handle_DealWaitHandle_Task.h"
#import "WebServiceHelper.h"
#import "StringUtil.h"

@implementation Handle_DealWaitHandle_Task

-(void)execute
{
    NSString *ValidateData = [self.params objectForKey:@"ValidateData"];
    NSString *url = [self.params objectForKey:@"url"];
    NSString *wsNamespace = [self.params objectForKey:@"namespace"];
    NSString *userguid = [self.params objectForKey:@"userguid"];
    NSString *MessageItemGuid = [self.params objectForKey:@"MessageItemGuid"];
    NSString *Opinion = [self.params objectForKey:@"Opinion"];
    NSString *OperationGuid = [self.params objectForKey:@"OperationGuid"];
    NSString *SendSms = [self.params objectForKey:@"SendSms"];
    NSString *SendSms_JJCD = [self.params objectForKey:@"SendSms_JJCD"];
    NSMutableString *YueDuUserGuidLst = [self.params objectForKey:@"YueDuUserGuidLst"];
    NSMutableString *PiBanUserGuidLst = [self.params objectForKey:@"PiBanUserGuidLst"];
    
//    NSString *PDFPath = [self.params objectForKey:@"PDFPath"];
    NSString *TargetActivityList = [self.params objectForKey:@"TargetActivityList"];
    
    WebServiceHelper *webserviceHelper = [[WebServiceHelper alloc]initWebServiceWithUrl:url wsNamespace:wsNamespace method:@"Handle_DealWaitHandle"];
    NSString *ParasXml = @"<paras><UserGuid>%@</UserGuid><MessageItemGuid>%@</MessageItemGuid><Opinion>%@</Opinion><OperationGuid>%@</OperationGuid><SendSms>%@</SendSms><SendSms_JJCD>%@</SendSms_JJCD>%@<PiBanUserGuidLst>%@</PiBanUserGuidLst><YueDuUserGuidLst>%@</YueDuUserGuidLst><PDFContent>%@</PDFContent></paras>";
    
    ParasXml = [NSString stringWithFormat:ParasXml,userguid,MessageItemGuid,Opinion,OperationGuid,SendSms,SendSms_JJCD,TargetActivityList,PiBanUserGuidLst,YueDuUserGuidLst,@""];
    ParasXml = [StringUtil filterXmlString:ParasXml];
    [webserviceHelper addParameterForString:@"ValidateData" value:ValidateData];
    [webserviceHelper addParameterForString:@"ParasXml" value:ParasXml];
    NSString *bs = webserviceHelper.start;
    [self sendDataRefreshUI:bs];
}

@end
